import request from '@/utils/request'

export function getWorkerOrder(workerId) {
  return request({
    url: `/managent/order/workerOrder`, // 请求路径
    method: 'GET',
    data: { workerId } // 发送workerId作为请求参数
  });
}

export function getWorkerRepair(workerId) {
  return request({
    url: `/managent/order/workerRepair`, // 请求路径
    method: 'GET',
    data: { workerId } // 发送workerId作为请求参数
  });
}

export function editWorkerOrder(id,orderStatus,repairPlan) {
  return request({
    url: `/managent/order`, // 请求路径
    method: 'PUT',
    data: { id,orderStatus,repairPlan } 
  });
}
